<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head th:include="head.html::head">
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<div th:text="${msg}"></div>
<div th:text="${agd}"></div>
<div id="top" th:include="head.html::top"></div>
<div id="left" th:include="left.html::left"></div>
<table>
    <h3><a th:href="@{/admin/goodsadd}">添加商品信息</a></h3>
    <tr>
        <th>商品ID</th>
        <th>商品名称</th>
        <th>商品价格</th>
        <th>商品库存</th>
        <th>商品销售量</th>
        <th>商品所在城市</th>
        <th>商品类别</th>
    </tr>
<tr th:each="goods:${goodsListPage.list}">
    <td th:text="${goods.getGdid()}"></td>
    <td th:text="${goods.getGdname()}"></td>
    <td th:text="${goods.getGdprice()}"></td>
    <td th:text="${goods.getGdquantity()}"></td>
    <td th:text="${goods.getGdsaleqty()}"></td>
    <td th:text="${goods.getGdcity()}"></td>
    <td th:text="${goods.getGoodstype().getTname()}"></td>
    <td>
        <a th:href="@{/admin/delGoods/} + ${goods.getGdid()}">删除</a>
        <a th:href="@{/admin/Goods/} + ${goods.getGdid()}">编辑</a>
    </td>
</tr>
</table>
<div id="page" th:include="page.html::mypage(goods,${goodsListPage})"></div>
</body>
</html>